<?php
echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/customer_add.css');
echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/ui-darkness/jquery-ui-1.8.16.custom.css');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery-1.6.2.min.js');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery-ui-1.8.16.custom.min.js');
?>
<script type="text/javascript">
<?php
		if (isset($this->phone_checker)) {
			if ($this->phone_checker == false) {
		?>
$(function() {
	$("#dialog:ui-dialog").dialog("destroy");

	$("#dialog-confirm").dialog({
	//$("<div id='dialog-confirm2' title='Test'>Hohoho " + test1 + "</div>").dialog({
		resizable: false,
		//height:340,
		modal: true,
		//autoOpen: false,
		show: "blind",
		hide: "explode",
		buttons: {
			OK: function() {
				//$("#customer").submit();
				$(this).dialog("close");
			}
		}
	});

	//$("#opener").click(function() {
	//	$("#dialog-confirm").dialog("open");
	//	return false;
	//});
});
<?php
	}
}
?>
</script>
<?php
$this->title = "Customer Registration";
$this->headTitle($this->title);
?>
<h1><a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'index'), null, true); ?>">Home</a> > <?php echo $this->escape($this->title); ?></h1>
<div class="cont">
<?php echo $this->form; ?>
<?php
if (isset($this->phone_checker)) {
	if ($this->phone_checker == false) {
?>
<div id="dialog-confirm" title="ERROR">
	<p>At least one phone number is required.</p>
</div>
<?php
		$this->phone_checker = true;
	}
}
?>
</div>